TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule B

Total Complexity 99
Dependencies 4
Dependents 18
Total lines 621
Lines of code 341
Logical lines of code 159
Comment lines 148
Methods 52
Properties 21

Methods 52

Method Rating Maintainability Complexity Lines of code
_matchRequirements()
B
42 22 50
fromArray()
A
49 10 27
validatePricing()
S
61 6 11
build()
S
44 2 45
readPricingRules()
S
65 4 8
save()
S
51 2 26
asArray()
S
52 1 24
isValidPricing()
S
68 2 8
setRegularPrice()
S
78 2 3
setApplyingType()
S
77 2 3
getApplyingType()
S
72 2 6
setPricingType()
S
77 2 3
setDiscountType()
S
77 2 3
setTieredPricingType()
S
77 2 3
setIsSuspended()
S
81 1 3
setExcludedProducts()
S
81 1 3
getIncludedUserRoles()
S
82 1 3
getExcludedUserRoles()
S
82 1 3
setIncludedUsersRole()
S
81 1 3
setExcludedUsersRole()
S
81 1 3
matchRequirements()
S
65 1 10
reactivate()
S
81 1 3
isSuspended()
S
82 1 3
getIncludedUsers()
S
82 1 3
getExcludedUsers()
S
82 1 3
setIncludedUsers()
S
81 1 3
setExcludedUsers()
S
81 1 3
getExcludedProducts()
S
82 1 3
suspend()
S
81 1 3
setIncludedProducts()
S
81 1 3
getId()
S
82 1 3
getIncludedProducts()
S
82 1 3
getPricingType()
S
82 1 3
getDiscount()
S
82 1 3
setDiscount()
S
81 1 3
getDiscountType()
S
82 1 3
getTieredPricingType()
S
82 1 3
getPercentageTieredPricingRules()
S
82 1 3
setPercentageTieredPricingRules()
S
81 1 3
getFixedTieredPricingRules()
S
82 1 3
setFixedTieredPricingRules()
S
81 1 3
getTieredPricingRules()
S
81 1 3
setExcludedProductCategories()
S
81 1 3
getRegularPrice()
S
82 1 3
getSalePrice()
S
82 1 3
setSalePrice()
S
81 1 3
getMinimum()
S
82 1 3
setMinimum()
S
81 1 3
setId()
S
81 1 3
getExcludedProductCategories()
S
82 1 3
setIncludedProductCategories()
S
81 1 3
getIncludedProductCategories()
S
82 1 3